<template>
  <div class="detailDialog">
    <el-dialog
      title="返利明细"
      :visible.sync="isVisible"
      :close-on-click-modal="false"
      :close-on-press-escape="false"
      :modal-append-to-body="false"
      @close="closeDialog"
      width="90%"
    >
      <el-table :data="dialogRow" height="520">
        <el-table-column property="username" label="用户名" width="60"></el-table-column>
        <el-table-column property="orderId" label="订单号"></el-table-column>
        <el-table-column property="cpOrderId" label="CP单号"></el-table-column>
        <el-table-column property="gameName" label="游戏名"></el-table-column>
        <el-table-column property="serverName" label="区服" width="120"></el-table-column>
        <el-table-column property="roleName" label="角色名" width="120"></el-table-column>
        <el-table-column property="roleId" label="角色ID"></el-table-column>
        <el-table-column property="amount" label="充值金额" width="80"></el-table-column>
        <el-table-column property="payTime" label="充值时间"></el-table-column>
      </el-table>
    </el-dialog>
  </div>
</template>
<script>
export default {
  data() {
    return {
      isVisible: this.isShow
    };
  },
  props: {
    isShow: Boolean,
    dialogRow: Array
  },
  methods: {
    closeDialog() {
      this.$emit("closeDialog");
    }
  }
};
</script>
<style lang="scss">
.detailDialog {
 .el-dialog{
   margin-top: 5vh !important;
 }
}
</style>